Skip to content

Conversation

@mxinden
Copy link
Contributor

@mxinden mxinden commented Dec 4, 2020

Releasing static-metric fails with:

Caused by:
  failed to parse manifest at
`/xxx/tikv/rust-prometheus/target/package/prometheus-static-metric-0.5.0/Cargo.toml`

Caused by:
  can't find `benches` bench, specify bench.path

This is due to the benches folder not being included in the final
release tarball. With this commit the folder is included and thus
releasing prometheus-static-metric would succeed.

Off the top of my head this is the right way to go. Open for alternative
suggestions.

Releasing static-metric fails with:

```
Caused by:
  failed to parse manifest at
`/xxx/tikv/rust-prometheus/target/package/prometheus-static-metric-0.5.0/Cargo.toml`

Caused by:
  can't find `benches` bench, specify bench.path
```

This is due to the `benches` folder not being included in the final
release tarball. With this commit the folder is included and thus
releasing prometheus-static-metric would succeed.

Signed-off-by: Max Inden <[email protected]>
@mxinden mxinden force-pushed the static-metric-benches-include branch from e9e7e30 to 19ee1e9 Compare December 4, 2020 10:12
@lucab
Copy link
Member

lucab commented Dec 4, 2020

Do we need the include list at all? It seems to be missing other paths too (e.g. tests/) and contain bogus entries (LICENSE).

Whatever outcome, CI can also validate the fix here with cargo package --manifest-path static-metric/Cargo.toml as an additional workflow step.

@mxinden mxinden force-pushed the static-metric-benches-include branch from d6ccbe4 to e76706d Compare December 6, 2020 18:47
@mxinden
Copy link
Contributor Author

mxinden commented Dec 6, 2020

I followed both suggestions by @lucab. (1) introducing a new check to CI (see failing test on e76706d) and (2) remove the includes section. Thanks for the suggestions.

@breeswish as far as I can tell you introduced the includes section. Are you fine with this pull request removing it? Anything we are missing?

@mxinden mxinden requested a review from breezewish December 6, 2020 18:56
@mxinden mxinden changed the title static-metric/Cargo.toml: Add benches to include section static-metric/Cargo.toml: Remove include section Dec 6, 2020
@breezewish breezewish merged commit aeff6bf into tikv:master Dec 14, 2020
@mxinden
Copy link
Contributor Author

mxinden commented Dec 14, 2020

Release tagged and pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants